<!DOCTYPE html>
<html>
<head>  
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>申请请假</title>
  <title></title>
  <link rel="stylesheet" type="text/css" href="http://cdn.amazeui.org/amazeui/2.7.2/css/amazeui.min.css">
  <link rel="stylesheet" type="text/css" href="/css/amazeui.datetimepicker.css">

  <style type="text/css">
    .main {
      max-width: 1024px;
      margin : 30px auto;
    }
    .line {
      margin : 10px 5px 10px 5px;
    }
    .title {
      line-height: 38px;
      margin-right: 15px;
    }
    .star {
      color : red;
      font-weight: bold;
      padding-right: 5px;
    }
    .field {
      width : 60%;
    }
    select {
      height : 38px;
      width : 60%;
    }
  </style>
</head>
<body>
  <div class="main">
    <hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
    <div id="error_msg" style="display: none;"></div>
    <div class="am-cf line">
      <div class="am-fl title">
        <span class="star">*</span><span>开始时间：</span>
      </div>
      <div class="am-fl am-input-group date form_datetime-1 field">
        <input size="16" type="text" id="begin_date" class="am-form-field" readonly>
        <span class="am-input-group-label add-on"><i class="icon-th am-icon-calendar"></i></span>
      </div>
    </div>
    <div class="am-cf line">
      <div class="am-fl title">
        <span class="star">*</span><span>结束时间：</span>
      </div>
      <div class="am-fl am-input-group date form_datetime-1 field">
        <input size="16" type="text" id="end_date" class="am-form-field" readonly>
        <span class="am-input-group-label add-on"><i class="icon-th am-icon-calendar"></i></span>
      </div>
    </div>
    <hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
    <div class="am-cf line">
      <div class="am-fl title">
        <span class="star">*</span><span>请假类型：</span>
      </div>
      <div class="am-fl am-input-group date form_datetime-1 field">
        <select id="leave_type" class="field">
          <option value="1">事假</option>
          <option value="2">病假</option>
          <option value="0">其他</option>
        </select>
      </div>
    </div>
    <hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
    <div class="line">
      <div>
        <span class="star">*</span><span>事由：</span>
      </div>
      <textarea class="" rows="5" id="reson" style="width:100%;"></textarea>
    </div>
    <button type="button" class="am-btn am-btn-warning am-btn-block" onclick="submit();">提交申请</button>
    {% include "bottom.html" %}
  </div>  
</body>
<script type="text/javascript" src="/lib/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.min.js"></script>
<script type="text/javascript" src="/lib/amazeui.datetimepicker.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/leave.js"></script>
</html>